package photo.navi;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.location.LocationManager;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;

public class MainActivity extends Activity {
	public static final String locationProvider = LocationManager.GPS_PROVIDER;
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        GpsManager.getInstance().setLocationManager((LocationManager) this.getSystemService(Context.LOCATION_SERVICE));
        setContentView(R.layout.activity_main);
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.activity_main, menu);
        return true;
    }
    
    /** Called when the user clicks the Capture Location button*/
    public void startCapturing(View view) {
        Intent intent = new Intent(this, CaptureLocationActivity.class);
        startActivity(intent);
    }
    
    /** Called when the user clicks the Location Gallery button*/
    public void showGallery(View view) {
        Intent intent = new Intent(this, LocationGalleryActivity.class);
        startActivity(intent);
    }
}
